//
//  ProductCell.swift
//  HttpStydu
//
//  Created by yongkang on 2017/8/16.
//  Copyright © 2017年 sheng. All rights reserved.
//

import UIKit

protocol YMCollectionViewCellDelegate: NSObjectProtocol {
    func collectionViewCellDidClickedLikeButton(button: UIButton)
}

class ProductCell: UICollectionViewCell {
    
    weak var delegate: YMCollectionViewCellDelegate?
    
    var product: Product?{
        didSet {
            let url = product?.cover_image_url!
            print(url)
            
        }
    }

    
    override func awakeFromNib() {
        super.awakeFromNib()        
    }
    
    
}
